package study2018.com.xtianzhuang.www.designPattern.SingleTonPattern;

public class SingleTonDemo3 {
	private static SingleTonDemo3 instance = null;

	// 私有构造 防止创建对象
	private SingleTonDemo3() {

	}
	
	public static SingleTonDemo3 getInstance() {
		if (instance == null) {
			return new SingleTonDemo3();
		}
		return instance;
	}
}
